#include "Q8_1.h"

void show()
{
	cout << "Hello World\n"<<endl;;
}
//void show(char *str)
//{
//	cout << str <<endl;
//}
void show(char *str, bool isCapital = false)
{
	int size = strlen(str);
	char *des = new char[size+1];
	char c;
	for(int i=0; i<size+1; i++)
	{
		if(isCapital && isupper(str[i]))
			c = (char)tolower(str[i]);
		else
			c = str[i];
		des[i] = c;
	}
	cout<< des << endl;
}
void q8_1_run()
{
	cout << "Q8.1\n";
	show();
	show("Hello World");
	show("Hello World", true);
}